package com.jiayu.wheel.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * 循环注入问题解决方案，在一方的注入上加@Lazy注解
 * @author Administrator
 */
@Component
public class LoopInjectionA {

    @Lazy
    @Autowired
    private LoopInjectionB loopInjectionB;

}
